// import Vue from 'vue'
// import moment from 'moment'

// Vue.filter('formatdate', (val) => {
//   return moment(val).format('YYYY-MM-DD')
// })

import moment from 'moment'
import employeesEmun from '@/api/constant/employees'
export const formatdate = val => moment(val).format('YYYY-MM-DD')

export const formatHireType = val => {
  const f = employeesEmun.hireType.find(t => t.id === val)
  return f ? f.value : '未知'
}
